﻿using UnityEngine;
using System.Collections;

public class ExtractionPoint : MonoBehaviour
{
	void OnTriggerEnter(Collider _end)
	{
		Debug.Log(_end.gameObject.name);
		if (_end.gameObject.name == "First Person Controller")
		{
			GameOver();	
		}
	}
	void GameOver()
	{
		Debug.Log("finito tabarnaco");
		Application.LoadLevel("GUI");
	}
	void Update()
	{
		//Debug.Log("n'importe quoi");
	}
}
